<template>
  <el-table
      :data="data"
      :style="{width: width}"
      :stripe="stripe"
  >
    <el-table-column v-for="item in columns"
                     :align="item.align === null ? 'center' : item.align"
                     :prop="item.prop"
                     :label="item.label"
                     :width="item.width === null ? 120 : item.width">

    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: "cTable",
  props: {
    data: Array,
    width: {
      type: String,
      default: "100%"
    },
    columns: {
      type: Array,
    },
    stripe: {
      type: Boolean,
      default: false,
    },
    border: {
      type: Boolean,
      default: false,
    }
  },
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped>

</style>
